package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchaseOrderPay", catalog="Id")
public class TcgPurchaseOrderPay extends BaseEntity<TcgPurchaseOrderPay> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="PlanBid", nameJava="planBid", typeDataBase="varchar")
	private String planBid;
	@YsField(nameDataBase="PurchasePlanGoodsId", nameJava="purchasePlanGoodsId", typeDataBase="bigint")
	private Long purchasePlanGoodsId;
	@YsField(nameDataBase="PurchaseOrderBid", nameJava="purchaseOrderBid", typeDataBase="varchar")
	private String purchaseOrderBid;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="AuditingTime", nameJava="auditingTime", typeDataBase="datetime")
	private Date auditingTime;
	@YsField(nameDataBase="AuditingUserId", nameJava="auditingUserId", typeDataBase="varchar")
	private String auditingUserId;
	@YsField(nameDataBase="PayType", nameJava="payType", typeDataBase="tinyint")
	private Integer payType;
	@YsField(nameDataBase="Vid", nameJava="vid", typeDataBase="varchar")
	private String vid;
	@YsField(nameDataBase="Vyhzh", nameJava="vyhzh", typeDataBase="varchar")
	private String vyhzh;
	@YsField(nameDataBase="Vkhh", nameJava="vkhh", typeDataBase="varchar")
	private String vkhh;
	@YsField(nameDataBase="Vyhzhmc", nameJava="vyhzhmc", typeDataBase="varchar")
	private String vyhzhmc;
	@YsField(nameDataBase="ChargeTroubleWf", nameJava="chargeTroubleWf", typeDataBase="decimal")
	private BigDecimal chargeTroubleWf;
	@YsField(nameDataBase="ChargeTrouble", nameJava="chargeTrouble", typeDataBase="decimal")
	private BigDecimal chargeTrouble;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchaseOrderPay setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcgPurchaseOrderPay setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getPlanBid() {
		return planBid;
	}
	public TcgPurchaseOrderPay setPlanBid(String planBid) {
		this.planBid = planBid;
		return this;
	}
	public Long getPurchasePlanGoodsId() {
		return purchasePlanGoodsId;
	}
	public TcgPurchaseOrderPay setPurchasePlanGoodsId(Long purchasePlanGoodsId) {
		this.purchasePlanGoodsId = purchasePlanGoodsId;
		return this;
	}
	public String getPurchaseOrderBid() {
		return purchaseOrderBid;
	}
	public TcgPurchaseOrderPay setPurchaseOrderBid(String purchaseOrderBid) {
		this.purchaseOrderBid = purchaseOrderBid;
		return this;
	}
	public Date getAuditingTime() {
		return auditingTime;
	}
	public TcgPurchaseOrderPay setAuditingTime(Date auditingTime) {
		this.auditingTime = auditingTime;
		return this;
	}
	public String getAuditingUserId() {
		return auditingUserId;
	}
	public TcgPurchaseOrderPay setAuditingUserId(String auditingUserId) {
		this.auditingUserId = auditingUserId;
		return this;
	}
	public Integer getPayType() {
		return payType;
	}
	public TcgPurchaseOrderPay setPayType(Integer payType) {
		this.payType = payType;
		return this;
	}
	public String getVid() {
		return vid;
	}
	public TcgPurchaseOrderPay setVid(String vid) {
		this.vid = vid;
		return this;
	}
	public String getVyhzh() {
		return vyhzh;
	}
	public TcgPurchaseOrderPay setVyhzh(String vyhzh) {
		this.vyhzh = vyhzh;
		return this;
	}
	public String getVkhh() {
		return vkhh;
	}
	public TcgPurchaseOrderPay setVkhh(String vkhh) {
		this.vkhh = vkhh;
		return this;
	}
	public String getVyhzhmc() {
		return vyhzhmc;
	}
	public TcgPurchaseOrderPay setVyhzhmc(String vyhzhmc) {
		this.vyhzhmc = vyhzhmc;
		return this;
	}
	public BigDecimal getChargeTroubleWf() {
		return chargeTroubleWf;
	}
	public TcgPurchaseOrderPay setChargeTroubleWf(BigDecimal chargeTroubleWf) {
		this.chargeTroubleWf = chargeTroubleWf;
		return this;
	}
	public BigDecimal getChargeTrouble() {
		return chargeTrouble;
	}
	public TcgPurchaseOrderPay setChargeTrouble(BigDecimal chargeTrouble) {
		this.chargeTrouble = chargeTrouble;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchaseOrderPay setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchaseOrderPay setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchaseOrderPay setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchaseOrderPay tcgPurchaseOrderPay(
		String bid,
		String planBid,
		Long purchasePlanGoodsId,
		String purchaseOrderBid,
		Date auditingTime,
		String auditingUserId,
		Integer payType,
		String vid,
		String vyhzh,
		String vkhh,
		String vyhzhmc,
		BigDecimal chargeTroubleWf,
		BigDecimal chargeTrouble,
		Integer status
			) {
		TcgPurchaseOrderPay entity = new TcgPurchaseOrderPay();
		entity.setBid(bid);
		entity.setPlanBid(planBid);
		entity.setPurchasePlanGoodsId(purchasePlanGoodsId);
		entity.setPurchaseOrderBid(purchaseOrderBid);
		entity.setAuditingTime(auditingTime);
		entity.setAuditingUserId(auditingUserId);
		entity.setPayType(payType);
		entity.setVid(vid);
		entity.setVyhzh(vyhzh);
		entity.setVkhh(vkhh);
		entity.setVyhzhmc(vyhzhmc);
		entity.setChargeTroubleWf(chargeTroubleWf);
		entity.setChargeTrouble(chargeTrouble);
		entity.setStatus(status);
		return entity;
	}
}